from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.views.static import serve

urlpatterns = [
    path('admin/', admin.site.urls),
    path('api/v1/home/', include('home.urls')),  # http://127.0.0.1:8000/api/v1/home/banner/
    path('api/v1/user/', include('user.urls')),  # http://127.0.0.1:8000/api/v1/user/
    path('api/v1/course/', include('course.urls')),  # http://127.0.0.1:8000/api/v1/course/
    path('api/v1/order/', include('order.urls')),  # http://127.0.0.1:8000/api/v1/order/
    path('media/<path:path>', serve, {'document_root': settings.MEDIA_ROOT})
]
